<template>
  <div id="body">
    <div class="head">
      <div class="head-two">
        <span style="color: rgba(0, 0, 0, 0.447058823529412)">资料管理</span>&nbsp;/&nbsp;<span>楼座管理</span>
      </div>
      <div class="head-one">楼座管理</div>
    </div>
    <div class="neck">
      <div class="neck-sas">
        <!-- <div class="neck-MultiplChoice">
          房屋用途
          <div class="checks">
            <select name="state" id="state">
              <option value="all">普通住宅</option>
              <option value="UnderReview">商业用地</option>
              <option value="Approved">商住两用</option>
              <option value="UnApproved">其它</option>
            </select>
          </div>
        </div> -->
        <div class="neck-MultiplChoice">
          <div class="box">
            房屋用途
            <div class="checks">
              <select name="state" id="state">
                <option value="all">普通住宅</option>
                <option value="UnderReview">商业用地</option>
                <option value="Approved">商住两用</option>
                <option value="UnApproved">其它</option>
              </select>
            </div>
          </div>
          <div class="box box2">
            房屋用途
            <div class="checks">
              <select name="state" id="state">
                <option value="all">普通住宅</option>
                <option value="UnderReview">商业用地</option>
                <option value="Approved">商住两用</option>
                <option value="UnApproved">其它</option>
              </select>
            </div>
          </div>
        </div>

        <div class="neck-MultiplChoice">

        </div>

        <!-- <div class="neck-MultiplChoice">
          房屋用途
          <div class="checks">
            <select name="state" id="state">
              <option value="all">普通住宅</option>
              <option value="UnderReview">商业用地</option>
              <option value="Approved">商住两用</option>
              <option value="UnApproved">其它</option>
            </select>
          </div>
        </div> -->
        <div class="neck-sasloa">
          <div class="neck-MultiplChoice">
            房屋用途
            <div class="checks">
              <select name="state" id="state">
                <option value="all">普通住宅</option>
                <option value="UnderReview">商业用地</option>
                <option value="Approved">商住两用</option>
                <option value="UnApproved">其它</option>
              </select>
            </div>
            <p>今日</p>
            <p>昨日</p>
            <p>最近7天</p>
            <p>最近30天</p>
          </div>
        </div>
      </div>
    </div>
    <div class="mid">
      <HouseholdFrom :taberTitle="columns" :tablename="Household" :data="Householddata" :pageurl="pageurl"
        :treeTitle="HouseholdtreeTitle">
      </HouseholdFrom>
    </div>
  </div>
</template>

<script>
import HouseholdFrom from '@/components/public/TaberFrom/HouseholdFrom'
import { HouseholdFn } from '@/config/api'
export default {
  name: "Household",

  data() {
    return {

      columns: [],
      Household: '住户列表',
      Householddata: [],
      pageurl: [],
      HouseholdtreeTitle: [],

      //进行切换的按钮数据
      PackUpdata: {
        icon: "down",
        text: "展开",
        state: false

      },

      //选择器数据
      Search: {
        type: "name",
        value: ""
      }
    };
  },
  components: {
    // MainHeader,
    HouseholdFrom
  },

  mounted() {
    this.getdata()
  },

  methods: {
    // 获取数据HouseholdFn
    async getdata() {
      let { data: res } = await HouseholdFn()
      // // columns: [],
      // Household: '',
      // Householddata: [],
      // pageurl: [],
      const { HouseholdtreeTitle, columns, Householdlist } = res.data
      this.columns = columns;
      this.Householddata = Householdlist
      this.HouseholdtreeTitle = HouseholdtreeTitle

    },

    theQuery() {

    },
    reset() {

    },
    //点击切换类名
    PackUp() {
      let flay = this.PackUpdata.state
      if (!flay) {
        this.PackUpdata.text = "收起";
        this.PackUpdata.state = !flay
        this.PackUpdata.icon = 'up'
      } else {
        this.PackUpdata.text = "收起";
        this.PackUpdata.state = !this.PackUpdata.state
        this.PackUpdata.icon = 'up'
      }
      //  {
      //   icon: "down",
      //     text: "展开",
      //       state: false

      // },
    },

    // 选择器方法
    handleChange(value) {
      console.log(`selected ${value}`);
    },
    handleBlur() {
      console.log('blur');
    },
    handleFocus() {
      console.log('focus');
    },
    filterOption(input, option) {
      return (
        option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
      );
    },
    // 选择器方法end
    //日期选择器的方法
    onChange(value, dateString) {
      console.log('Selected Time: ', value);
      console.log('Formatted Selected Time: ', dateString);
    },
    onOk(value) {
      console.log('onOk: ', value);
    },







  },
};
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
}

#body {
  margin: 0px;
  background-color: rgba(240, 242, 245, 1);
  background-image: none;
  width: 1136px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;

  .head {
    border-width: 10px;
    display: flex;
    flex-direction: column;
    font-family: "MalayalamMN", "Malayalam MN", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    width: 1136px;
    height: 97px;
    background: inherit;
    background-color: rgba(255, 255, 255, 1);
    box-sizing: border-box;
    border-width: 0px;
    border-style: solid;
    border-color: rgba(233, 233, 233, 1);
    border-radius: 2px;
    box-shadow: none;
    flex-wrap: wrap;

    .head-one {
      font-weight: 700;
      font-style: normal;
      font-size: 20px;
      line-height: 0px;
      color: #333333;
      align-self: center;
      padding: 4px 0px 0px 30px;
      box-sizing: border-box;
      width: 100%;
    }

    .head-two {
      align-self: flex-start;
      padding: 16px 0px 16px 32px;
      box-sizing: border-box;
      width: 100%;
      visibility: inherit;
      font-weight: 400;
      font-style: normal;
      font-size: 14px;
      color: rgba(0, 0, 0, 0.847058823529412);
      line-height: 28px;
    }
  }

  .neck {
    background-color: rgba(255, 255, 255, 1);
    width: 1136px;
    height: 170px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Arial Normal", "Arial", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    color: #333333;
    text-transform: none;
    background-color: #ffffff;
    box-sizing: border-box;
    border-width: 0px;
    border-style: solid;
    border-color: #e9e9e9;
    border-radius: 2px;
    box-shadow: none;

    .neck-sasloa {
      background-color: rgba(255, 255, 255, 1);
      width: 1136px;
      height: 170px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: "Arial Normal", "Arial", sans-serif;
      font-weight: 400;
      font-style: normal;
      font-size: 13px;
      color: #333333;
      text-transform: none;
      background-color: #ffffff;
      box-sizing: border-box;
      border-width: 0px;

      border-style: solid;
      border-color: #e9e9e9;
      border-radius: 2px;
      box-shadow: none;
    }

    .neck-sas {
      background-color: rgba(255, 255, 255, 1);
      width: 1136px;
      height: 170px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-family: "Arial Normal", "Arial", sans-serif;
      font-weight: 400;
      font-style: normal;
      font-size: 13px;
      color: #333333;
      text-transform: none;
      background-color: #ffffff;
      box-sizing: border-box;
      border-width: 1px;
      border-style: solid;
      border-color: #e9e9e9;
      border-radius: 2px;
      box-shadow: none;

      .neck-MultiplChoice {
        display: flex;
        align-items: center;
        padding: 0px 0px 0px 32px;
        border-width: 0px;
        font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
        font-weight: 400;
        font-style: normal;
        color: rgba(0, 0, 0, 0.847058823529412);

        p {
          color: #333333;
          margin-left: 30px;
        }

        .box {
          display: flex;
          align-items: center;
        }

        .box2 {
          margin-left: 100px;
        }

        .checks {
          margin-left: 10px;
          border-width: 0px;
          width: 266px;
          height: 34px;
          display: flex;
          font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
          font-weight: 400;
          font-style: normal;
          font-size: 12px;
          color: rgba(0, 0, 0, 0.149019607843137);
          text-align: left;
          line-height: 22px;
          border: 1px solid;

          select {
            width: 264px;
            height: 32px;
            background: inherit;
            background-color: rgba(255, 255, 255, 1);
            box-sizing: border-box;
            border-width: 0;
            border-style: solid;
            // border-color: rgba(24, 144, 255, 1);
            border-radius: 2px;
            box-shadow: 0px 0px 8px rgb(24 144 255 / 25%);
            font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
            font-weight: 400;
            font-style: normal;
            font-size: 12px;
            color: rgba(0, 0, 0);
            text-align: left;
            line-height: 22px;
            outline-color: rgba(24, 144, 255, 1);
            padding-left: 5px;

            option {
              font-size: 14px;
              color: rgba(0, 0, 0, 0.647);
              border-radius: 0;
            }
          }
        }
      }
    }

    .neck-input {
      width: 300px;
      display: flex;
      justify-content: center;

      .check {
        border-width: 0px;
        width: 72px;
        height: 32px;
        font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 14px;
        color: #ffffff;
        line-height: 22px;
        align-self: center;
        padding: 0px 0px 0px 0px;
        box-sizing: border-box;
        background-color: rgb(24, 144, 255);
        margin-right: 10px;
      }

      .check:hover {
        background-color: rgba(24, 144, 255, 0.9);
      }

      .reset {
        border-width: 0px;
        width: 72px;
        height: 32px;
        font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.647058823529412);
        line-height: 22px;
        background: inherit;
        background-color: rgba(255, 255, 255, 1);
        box-sizing: border-box;
        border-style: solid;
        border-color: rgba(217, 217, 217, 1);
        border-radius: 2px;
        box-shadow: none;
        align-self: center;
        padding: 2px 0px 2px 0px;
        box-sizing: border-box;
      }

      .reset:hover {
        color: rgb(24, 144, 255);
        border-color: rgb(24, 144, 255);
      }
    }












  }

  .mid {
    padding: 20px;
    box-sizing: border-box;
    margin-top: 20px;
    width: 1136px;
    display: flex;
    font-family: "MalayalamMN", "Malayalam MN", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: left;
    background-color: #ffffff;
    border-color: #e9e9e9;
    border-width: 0px;
    border-style: solid;
    color: #333333;
    line-height: normal;
    text-transform: none;
  }
}


@keyframes boxheight {
  0% {
    height: 120px;
  }


  100% {
    height: auto;
  }

}
</style>